#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <errno.h>

#include "ustream/ustream.h"

int
main(int argc, char **argv)
{
	IUStream *stream;
	
	(void) argc;
	(void) argv;
	
	if(NULL == (stream = us_create("rot13+fd:///stdout", O_RDWR, 0)))
	{
		fprintf(stderr, "Failed to create stream: %s\n", strerror(errno));
		return 1;
	}
	/* CNFF -> rot13 -> PASS */
	us_put(stream, "CNFF\n", 5);
	us_destroy(stream);
	return 0;
}
